import { INCREMENT, DECREMENT } from "./constant";
export const createIncrementAction = (data) => ({ type: INCREMENT, data });
export const decrement = (data) => ({ type: DECREMENT, data });
export const createIncrementAsyncAction = (data) => {
  return (dispatch) => {
    setTimeout(() => {
       dispatch(createIncrementAction(data))
    }, 1000);
  };
};
